{section loop=$arr2 name=s1}
	<li>{$arr2[s1].title}</li>
	{if $smarty.section.s1.last}
		<li>结束了。。。。。</li>
	{/if}
{/section}
共有记录：{$smarty.section.s1.total}<br/>

<hr/>
{foreach key="k" item="v" from="$arr2"}
	{if $k is odd}
		<li style="color:#f00;">{$v.title}</li>
	{else}
		<li>{$v.title}</li>
	{/if}
{/foreach}
<hr/>
{literal}
{$arr.qq|substrd:3}
{/literal}
{$smarty.session.role}
{if $smarty.session.role==1}
	<h1>管理员</h1>
{else}
	<h3>普通用户</h3>
{/if}




















